
<div class="view-handle-main">
    <div class="view-search">

    </div>
    
    <div class="view-handle">
        <div class="view-header-item color-open" ng-click="shop_add = true" ng-show="!shop_add" title="添加门店">
            <i class="fa fa-plus"></i> 添加门店
        </div>
        <div class="view-header-item color-save no-widen" ng-click="revise_submit()" ng-show="!shop_add" title="修改提交">
            <i class="fa fa-save"></i>
        </div>
    </div>

</div>


<!-- <div class="view-header">
    <div class="view-header-left">
        <div class="view-header-item color-open" ng-click="shop_add = true" ng-show="!shop_add" title="添加门店">
            <i class="fa fa-plus"></i> 添加门店
        </div>
        <div class="view-header-item color-save no-widen" ng-click="revise_submit()" ng-show="!shop_add" title="修改提交">
            <i class="fa fa-save"></i>
        </div>


        <div class="view-header-item color-close above-cover no-widen" ng-click="shop_add = false" ng-show="shop_add" title="关闭">
            <i class="fa fa-close"></i>
        </div>
        <div class="view-header-item color-check above-cover" ng-click="submit();shop_add = false" ng-show="shop_add" title="提交">
            <i class="fa fa-check"></i> 确认提交
        </div>

    </div>
</div> -->
<div class="view-content">
    <div class="view-left">
        <div class="view-left-search">
            <input type="text" placeholder='Search' ng-model="filter_shop">
            <i class="fa fa-search"></i>
        </div>
        <div class="view-left-block">
            <shop-inc ng-model='forms.data' shop="forms.shop" desc="forms.desc" del="forms.del" delete="delete(item)"></shop-inc>
            <!-- <div class="view-left-item" ng-repeat="list in data |orderBy:['name'] |filter:filter_shop" ng-click="shop_list(list,data)"
                 ng-class="{true: 'marked', false: ''}[list.iscolor]">
                <li>
                    <i class="fa fa-user"></i>
                </li>
                <li class="view-left-item-user">
                    {{list.name}}
                </li>
                <li>
                    门店介绍:{{list.desc}}
                </li>
                <li class="view-left-item-del">
                    <i class="fa fa-trash" ng-click="delete();$event.stopPropagation()"></i>
                </li>
            </div> -->
        </div>
    </div>
    <div class="view-right">
        <div class="view-right-block">
            <!-- modify shop -->
            <!-- <ng-include src="'/modules/admin/shops/shops.modify.html'" ></ng-include> -->
            <div class="new-content">
                <div class="new-item">
                    <span>门店名称</span>
                    <input type="text" ng-model="revise_param.name">
                </div>
                <div class="new-item">
                    <span>门店介绍</span>
                    <input type="text" ng-model='revise_param.desc'>
                </div>
                <div class="new-item">
                    <span>门店ID</span>
                    <input type="text" ng-model='revise_param.sn'>
                </div>
                <div class="new-item">
                    <span>门店类型</span>
                    <select ng-model='revise_param.type'>
                        <option value="0">普通</option>
                        <option value="9">管理</option>
                    </select>
                </div>
                <div class="new-item">
                    <span>选择品牌</span>
                    <div class="picker all">
                        <select ng-options="item for item in revise_param._remain_brands" ng-model="brands_selected_to_add" multiple class="select-height"></select>
                    </div>

                    <div class="controller">
                        <button style="width:40px" ng-click="add_brands()"> <span class="fa fa-angle-double-down"></span> </button>
                        <button style="width:40px" ng-click="remove_brands()"> <span class="fa fa-angle-double-up"></span> </button>
                    </div>

                    <div class="picker ok">
                        <select ng-options="item for item in revise_param._brands" ng-model="brands_selected_to_remove" multiple class="select-height"></select>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- add shop -->
<ng-include src="'/modules/admin/shops/shops.new.html'" ></ng-include>